﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IQKS.AWP.BusinessAccessLayer;

public partial class AccreditationCertificate : System.Web.UI.Page
{
    int CandidateID;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["CandidateID"] != null)
        {
            CandidateID = Convert.ToInt32(Request.QueryString["CandidateID"]);
        }
        else
        {
            CandidateID = 10135;
        }
        if (CandidateID != 0)
        { 
            CandidateDataBAL objCANDBAL=new CandidateDataBAL();
            DataSet dsDetails = objCANDBAL.GetCandiadateAccrediationCertficateDetails(CandidateID);
            if (dsDetails != null)
            {
                if (dsDetails.Tables.Count > 0)
                {
                    if (dsDetails.Tables[0].Rows.Count > 0)
                    {
                        lblCandidateName.Text = Convert.ToString(dsDetails.Tables[0].Rows[0]["CandidateName"]);
                        lblRegistrationNumber.Text = Convert.ToString(dsDetails.Tables[0].Rows[0]["RegistrationNo"]);
                        lblBriefName.Text = Convert.ToString(dsDetails.Tables[0].Rows[0]["BriefName"]);
                        lblAwardedDate.Text = "Awarded:"+" " +Convert.ToString(dsDetails.Tables[0].Rows[0]["AwardDate"]);
                    }
                }
            }
        }
    }
}